<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // const p = new Promise((resolve) => {
    //   setTimeout(()=>{
    //          resolve('P中的resolve')
    //   },3000)})


    const promise = new Promise((resolve, reject) => {
      //3.resolve thenable对象
      resolve({
          name: "cyh",
          then: function (resolve) {
            resolve(11111111111)
          }
        }

      )


    })
    promise.then(res => {
      console.log("then中拿到结果~", res)
    })
  </script>
  </body>

</html>